package com.home.security.browser.auth.service;

import com.home.security.browser.auth.entity.SysRole;
import com.home.security.browser.auth.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 * Created by 王大宸 on 2020-10-08 16:07
 * Created with IntelliJ IDEA.
 */
@Service
public class SysRoleService {
    @Autowired
    private SysRoleMapper roleMapper;

    public List<SysRole> getRoleByUser(String userId) {
        return roleMapper.getRoleByUser(userId);
    }

}
